package testcase

import (
	httpexpect "github.com/gavv/httpexpect/v2"
	"saas_sys_base/testcase/test_helper"
	"time"
)

type AddAppPermissionExpireTimeRequest struct {
	Tid   int64 `json:"tid"`
	AppId int64 `json:"appid"` ///内部app id, internal app id

	Duration time.Duration `json:"duration"`
}

func PostAddAppPermissionExpireTime(t httpexpect.LoggerReporter, req *AddAppPermissionExpireTimeRequest, headers map[string]string) *httpexpect.Response {
	urlParam := struct{}{}
	resp := test_helper.PostTestUrl(t, "/api/sys/appmanager/add_apppermission_expiretime", urlParam, req, headers)
	return resp
}